<?php
defined( '_JEXEC' ) or die( 'Restricted Access' );
/**
 * @version     $Id$
 * @package     Virtuemart
 * @subpackage  GoodRelations Module
 * @copyright   Copyright (C) 2010 Alex Stolz - All rights reserved.
 * @license     LGPL
 */

// enable tooltips
JHTML::_('behavior.tooltip');
// load custom params
$link_text = $params->get('alink');
$link_img = $params->get('aimg');
?>
<p><span class="hasTip" title="<?php echo $link_text ?> :: GoodRelations metadata embedded"><?php
if($link_img != NULL) // show image for link
	echo "<img src=\"modules/mod_goodrelations/img/$link_img\" alt=\"$link_text\" />";
else // show text for link
	echo $link_text;
?></span></p>
<?php
/*
DEPRECATED
?>
<p><span class="hasTip" title="<?php echo $link_text ?> :: GoodRelations Feed"><a href="<?php
// print the filename and get the parameter for the hyperlink description
$controller->showRDF()
?>"><?php
if($link_img != NULL) // show image for link
	echo "<img src=\"modules/mod_goodrelations/img/$link_img\" alt=\"$link_text\" />";
else // show text for link
	echo $link_text;
?></a></span></p>
*/
?>